package edu.upc.demo.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import edu.upc.demo.domain.Usuarios;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooEntity
public class Cliente {

    @NotNull
    private String codigo;

    @NotNull
    @Size(max = 50)
    private String nombres;

    @NotNull
    @Size(max = 50)
    private String apellidos;

    @NotNull
    @Size(max = 20)
    private String identificacion;

    @Size(max = 50)
    private String correo;

    @Size(max = 15)
    private String telefono;

    @ManyToOne
    private Usuarios codigoUsuario;

    @NotNull
    @Size(max = 30)
    private String nroTarjeta;
}
